package com.example.util;

/**
 * 統一数据返回格式
 * 
 * @author wangkai
 *
 * @date: 2019年5月31日 下午2:15:12
 */
public class AjaxFeignResult {

	private String code;
	private String msg;
	private Object data;

	public AjaxFeignResult() {

	}

	public AjaxFeignResult(String code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public AjaxFeignResult(String code, String msg, Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public AjaxFeignResult(String code, Object data) {
		this.code = code;
		this.msg = "";
		this.data = data;
	}

	public AjaxFeignResult setCode(String code) {
		this.code = code;
		return this;
	}

	public AjaxFeignResult setMsg(String msg) {
		this.msg = msg;
		return this;
	}

	public AjaxFeignResult setDate(Object data) {
		this.data = data;
		return this;
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

	public Object getData() {
		return data;
	}

}
